USE [HTTP]
GO
/****** Object:  Table [dbo].[report_queries]    Script Date: 09/09/2010 16:17:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[report_queries](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nchar](50) COLLATE Cyrillic_General_CI_AS NULL,
	[sql] [text] COLLATE Cyrillic_General_CI_AS NULL,
	[create_dtm] [datetime] NULL,
	[parent_id] [int] NULL,
	[DivideType] [varchar](50) COLLATE Cyrillic_General_CI_AS NULL,
	[FirstDate] [datetime] NULL,
	[haveUserList] [bit] NULL CONSTRAINT [DF_report_queries_haveUserList]  DEFAULT ((0)),
	[Operator] [varchar](50) COLLATE Cyrillic_General_CI_AS NULL CONSTRAINT [DF_report_queries_Operator]  DEFAULT ('sum'),
 CONSTRAINT [PK_report_queries] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
SET ANSI_PADDING OFF